package com.gdk.service;

import java.util.List;
import java.util.Map;

/**
 * 促销活动service接口
 * 
 * */
public interface PromotionService {
	//查询所有促销活动
	List<Map<String,Object>> doFindAllPromotion();
	//新增促销活动
	int doAddPromotion(Map<String,Object> map);
	//更改活动状态 
	int doUpdatePromotionStatus(Map<String,Object> map);
	//查询活动详情
	Map<String,Object> doFindPromotionDetails(Map<String,Object> map);
	//修改活动详情 
	int doUpdatePromotionDetails(Map<String,Object> map);
	//活动绑定抵扣券 
	int doBindPromotionAndSmallTicket(Map<String,Object> map);
	//查询已绑定抵扣券 
	List<Map<String,Object>> doFindBindPromotionAndSmallTicket(Map<String,Object> map);
	//修改活动前查出是否已有用户下单
	List<Map<String,Object>> doFindOrderByTid(Map<String,Object> map);
	//清空已绑定的活动 
	int doDelPromotionAndTicket(Map<String,Object> map);
	//查询所有状态正常的门票
	List<Map<String,Object>> selectAllTicket(Map<String,Object> map);
	//新增活动查询所有可选促销活动
	List<Map<String,Object>> findAllPromotionByFlag();
	//查询所有状态正常的优惠券
	List<Map<String,Object>> findAllCouponByStatus();
	//新增促销活动关联
	int addPromotionTicketAndCouponAndCard(Map<String,Object> map);
	//查询已绑定的套票
	List<Map<String,Object>> findTicketBind(Map<String,Object> map);
	//清空已绑定的套票
	int delPromotionTicketAndType(Map<String,Object> map);
	//查询优惠券详情
	Map<String,Object> findCouponDetails(Map<String,Object> map);
	//新增优惠券查询所有可选促销活动
	List<Map<String,Object>> findAllPromotionByFlagAndStatus();
	//查询报名信息
	List<Map<String,Object>> selectApplyUserManager(Map<String,Object> map);
}
